#include <bits/stdc++.h>
using namespace std;

struct X {
    int x,y;
    X(int x,int y): x{x},y{y} {}

    X(std::initializer_list<int> list){
        auto it = list.begin();
        x = *it++;
        y = *it++;
    }
    void print(){
        cout << x <<"," <<y<< endl;
    }
};

int main(){
    X x(1,2);
    x.print();

    X x2 = {5,4,3,2,1};
    x2.print();
    return 0;
}
